package com.liliudong.cursormate.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liliudong.cursormate.entity.SysPermission;
import com.liliudong.cursormate.entity.SysRolePermission;

import java.util.List;

/**
 * @author Liudong.li
 * @description 针对表【sys_role_permission(系统角色权限表)】的数据库操作Service
 * @createDate 2023-10-24 22:29:24
 */
public interface SysRolePermissionService extends IService<SysRolePermission> {

    /**
     * 按角色id删除
     *
     * @param roleId 角色id
     */
    void removeByRoleId(Long roleId);

    /**
     * 按角色id保存批次
     *
     * @param roleId            角色id
     * @param sysPermissionList sys权限列表
     */
    void saveBatchByRoleId(Long roleId, List<SysPermission> sysPermissionList);
}
